package cn.cy.behavior.command.general;

/**
 * @author yangxq
 * @desc 遥控器类
 * @Date 2025-05-08
 */
public class RemoteControl {

    private Light light;

    public RemoteControl(Light light) {
        this.light = light;
    }

    public void pressTurnOnButton() {
        light.turnOn();
    }

    public void pressTurnOffButton() {
        light.turnOff();
    }

    public void pressIncreaseBrightnessButton() {
        light.increaseBrightness();
    }

    public void pressDecreaseBrightnessButton() {
        light.decreaseBrightness();
    }

}
